﻿
<style type="text/css">
 .text- {
      color: #ddd;
     font-size: 1em;
 }
</style>
@if (Request.IsAuthenticated) {
    <text>
        @Html.ActionLink(User.Identity.Name, "Manage", "Account", routeValues: null, htmlAttributes: new { @class = "username", title = "Manage" })
        @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" })) {
            @Html.AntiForgeryToken()
            <a class="text-" href="javascript:document.getElementById('logoutForm').submit()">&nbsp;&nbsp;|&nbsp;&nbsp;Выйти</a>
        }
    </text>
} else {
    <ul>
        <li>@Html.ActionLink("Регистрация", "Register", "Account", routeValues: null, htmlAttributes: new { @class = "text-", id = "registerLink" })</li>&nbsp;&nbsp;|&nbsp;&nbsp;
        <li>@Html.ActionLink("Войти", "Login", "Account", routeValues: null, htmlAttributes: new { @class = "text-", id = "loginLink" })</li>
    </ul>
}
